
//
//  GWStatuseFrame.m
//  新浪微博
//
//  Created by qianfeng on 16/2/18.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "GWStatuseFrame.h"
#import "GWDetailStatuseFrame.h"
@implementation GWStatuseFrame
-(void)setStatuse:(GWStatuseModel *)statuse
{
    _statuse =statuse;
    
    
    //1.计算微博具体内容的frame(微博整体)
    [self setupDetailStatuseFrame];
    //2.计算底部工具条
    [self setupStatuseToolBarFrame];
    //3.计算cell的高度
    self.statuseCellHeight =CGRectGetMaxY(self.statuseToolBarFrame);
}

//1.计算微博具体内容的frame(微博整体)
-(void)setupDetailStatuseFrame
{
    
    self.detailStatuseFrame =[[GWDetailStatuseFrame alloc]init];
    self.detailStatuseFrame.statuse =self.statuse;
}
//2.计算底部工具条
-(void)setupStatuseToolBarFrame
{
    self.statuseToolBarFrame =CGRectMake(0, CGRectGetMaxY(self.detailStatuseFrame.frame), GWScreenW, 35);
}

@end
